<?php
use common\service\StaticService;
use shopend\assets\ShopAsset;
use common\service\GlobalUrlService;
$this->title = '添加商铺';

StaticService::includeAppJsStatic(GlobalUrlService::buildShopStaticUrl('/backend/qiniu.min.js'),ShopAsset::class);
StaticService::includeAppJsStatic(GlobalUrlService::buildShopStaticUrl('/backend/shop/add-shop.js'),ShopAsset::class);
StaticService::includeAppCssStatic(GlobalUrlService::buildShopStaticUrl('/css/shop/add-shop.css'),ShopAsset::class);
?>

<form class="layui-form">
    <div class="">
        <div class="layui-card-body">
            <div class="layui-form-item">
                <h2>店铺基本信息</h2>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label title">店铺名称</label>
                <div class="layui-inline item">
                    <input type="text" class="layui-input input1" name="shop_name">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label title">登录账号</label>
                <div class="layui-inline item">
                    <input type="text" class="layui-input input2" name="user_account">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label title">登录密码</label>
                <div class="layui-inline item">
                    <input type="text" class="layui-input input3" name="password">
                </div>
            </div>
            <div class="layui-form-item">
                <h2>店铺管理人基本信息</h2>
                <!-- <div class="layui-inline"></div> -->
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label title">店铺管理人姓名</label>
                <div class="layui-inline item">
                    <input type="text" class="layui-input input4" name="administration">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label title">店铺管理人邮箱</label>
                <div class="layui-inline item">
                    <input type="text" class="layui-input input5" name="admin_email">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label title">店铺管理人手机号</label>
                <div class="layui-inline item">
                    <input type="text" class="layui-input shop-phone input6" name="admin_phone">
                </div>
            </div>
            <div class="layui-form-item code_item">
                <label class="layui-form-label title">验证码</label>
                <div class="layui-inline item">
                    <input type="text" class="layui-input input7" name="code">
                    <input class="layui-btn layui-btn-normal w25 getchecknum" value="获取验证码" type="button">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label title">店铺管理人身份证号</label>
                <div class="layui-inline item">
                    <input type="text" class="layui-input input8" name="join_card_no">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label title">商家客服电话</label>
                <div class="layui-inline item">
                    <input type="text" class="layui-input input9" name="customer_phone">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label title">管理人身份证正面照片</label>
                <div class="layui-inline item">
                    <label class="layui-btn" for="pic-card1"><i class="layui-icon">&#xe67c;</i>选择图片</label>
                    <input type="file" id="pic-card1" class="pic-card1" style="display:none;">
                    <div class="p40">
                        <label for="pic-card1 show_card">
                            <img src="" alt="" class="pic pic1">
                        </label>
                        <span class="example">
                            <img src="<?= GlobalUrlService::buildShopStaticUrl('img/front.png')?>" alt="" >
                            <b>示例</b>
                        </span>
                        <input type="hidden" value="" class="hidden-pic1" name="join_card1_pic">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label title">管理人身份证反面照片</label>
                <div class="layui-inline item">
                    <label class="layui-btn" for="pic-card2"><i class="layui-icon">&#xe67c;</i>选择图片</label>
                    <input type="file" id="pic-card2" class="pic-card2" style="display:none;">
                    <div class="p40">
                        <label for="pic-card2 show_card">
                            <img src="" alt="" class="pic pic2">
                        </label>
                        <span class="example">
                            <img src="<?= GlobalUrlService::buildShopStaticUrl('img/reverse.jpg')?>" alt="" >
                            <b>示例</b>
                        </span>
                        <input type="hidden" value="" class="hidden-pic2" name="join_card2_pic">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label title">管理人手持身份证照片</label>
                <div class="layui-inline item">
                    <label class="layui-btn" for="pic-card3"><i class="layui-icon">&#xe67c;</i>选择图片</label>
                    <input type="file" id="pic-card3" class="pic-card3" style="display:none;">
                    <div class="p40 ">
                        <label for="pic-card3 show_card">
                            <img src="" alt="" class="pic pic3">
                        </label>
                        <span class="example">
                            <img src="<?= GlobalUrlService::buildShopStaticUrl('img/handheld.jpg')?>" alt="" >
                            <b>示例</b>
                        </span>
                        <input type="hidden" value="" class="hidden-pic3" name="join_card3_pic">
                    </div>
                </div>
            </div>
            <div class="layui-form-item btns">
                <a class="layui-btn add-shop">确认</a>
                <a class="layui-btn layui-btn-primary" onclick="window.history.go(-1);">取消</a>
            </div>
        </div>
    </div>
</form>
<div class="layui-footer footer" style="text-align: center; padding-bottom: 30px; ">
    <p><span style="display: inline-block; line-height: 30px; margin-right: 20px; color: #666;">Copyright © 2018 pintuane.com  备案/许可证编号为：渝ICP备18004719号</span><a class="layui-btn layui-btn-danger layui-btn-sm">重庆西西里网络科技有限公司</a></p>
</div>
